Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade NeoFS SDK module to the latest revision #2449

Closed

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Jul 20, 2023

decided to have up-to-date SDK changes here to simplify debug and prepare for https://github.com/nspcc-dev/neofs-sdk-go/milestone/5

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #2449 (314117d) into master (950ee7c) will decrease coverage by 0.02%.
Report is 2 commits behind head on master.
The diff coverage is 13.95%.

❗ Current head 314117d differs from pull request most recent head aed298d. Consider uploading reports for the commit aed298d to get more accurate results

@@            Coverage Diff             @@
##           master    #2449      +/-   ##
==========================================
- Coverage   29.48%   29.46%   -0.02%     
==========================================
  Files         399      399              
  Lines       30430    30425       -5     
==========================================
- Hits         8973     8966       -7     
- Misses      20713    20716       +3     
+ Partials      744      743       -1     
Files Changed Coverage Δ
cmd/neofs-node/config.go 0.00% <0.00%> (ø)
cmd/neofs-node/object.go 0.00% <0.00%> (ø)
pkg/core/object/fmt.go 67.40% <0.00%> (-0.20%) ⬇️
pkg/innerring/rpc.go 0.00% <0.00%> (ø)
pkg/innerring/settlement.go 0.00% <0.00%> (ø)
pkg/services/object/acl/v2/request.go 0.00% <0.00%> (ø)
pkg/services/object/acl/v2/util.go 38.09% <0.00%> (+0.35%) ⬆️
pkg/services/object/acl/acl.go 28.00% <14.28%> (-1.27%) ⬇️
pkg/services/tree/signature.go 68.75% <66.66%> (-0.25%) ⬇️
pkg/services/object_manager/placement/traverser.go 83.96% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cthulhu-rider
Copy link
Contributor Author

protocol details are deeply rooted in the metabase implementation. Because this is a root and change-sensitive component, it needs to be edited more carefully

@@ -34,13 +34,12 @@ var accountingBalanceCmd = &cobra.Command{

balanceOwner, _ := cmd.Flags().GetString(ownerFlag)
if balanceOwner == "" {
err := user.IDFromSigner(&idUser, neofsecdsa.SignerRFC6979(*pk))
common.ExitOnErr(cmd, "decoding user from key", err)
idUser.SetScriptHash((*keys.PublicKey)(&pk.PublicKey).GetScriptHash())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This row is a good candidate to be moved to a separate function inside the user package because there are few places in the code, which look too similar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but we dropped "user from key" function, so, looks like it needs to be resurrected

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was added by nspcc-dev/neofs-sdk-go@6ab5d39, so now i can adopt it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants